package com.rssreader.client.mvc.controllers;

import com.extjs.gxt.ui.client.mvc.AppEvent;
import com.extjs.gxt.ui.client.mvc.Controller;
import com.rssreader.client.mvc.events.AppEvents;
import com.rssreader.client.mvc.views.FeedView;

public class FeedController extends Controller {
    private FeedView feedView;

    public FeedController() {
	registerEventTypes(AppEvents.Init);
	registerEventTypes(AppEvents.FeedSelected);
    }

    @Override
    public void handleEvent(AppEvent event) {
	forwardToView(feedView, event);
    }

    @Override
    protected void initialize() {
	super.initialize();
	feedView = new FeedView(this);
    }

}
